import request from '@/utils/request'

// 查询热门搜索,存储热搜关键词及热度列表
export function listSearchhot(query) {
  return request({
    url: '/search/searchhot/list',
    method: 'get',
    params: query
  })
}

// 查询热门搜索,存储热搜关键词及热度详细
export function getSearchhot(id) {
  return request({
    url: '/search/searchhot/' + id,
    method: 'get'
  })
}

// 新增热门搜索,存储热搜关键词及热度
export function addSearchhot(data) {
  return request({
    url: '/search/searchhot',
    method: 'post',
    data: data
  })
}

// 修改热门搜索,存储热搜关键词及热度
export function updateSearchhot(data) {
  return request({
    url: '/search/searchhot',
    method: 'put',
    data: data
  })
}

// 删除热门搜索,存储热搜关键词及热度
export function delSearchhot(id) {
  return request({
    url: '/search/searchhot/' + id,
    method: 'delete'
  })
}
